.class public Lrexsee/xml/RexseeXML;
.super Ljava/lang/Object;
.source "RexseeXML.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "XML"

.field public static final NAMESPACE_SPLIT:Ljava/lang/String; = "__"


# instance fields
.field private depth:I

.field private encoding:Ljava/lang/String;

.field private final mBrowser:Lrexsee/core/browser/Browser;

.field public final mContext:Landroid/content/Context;

.field private mCurrent:Lrexsee/xml/XmlElement;

.field private final mCurrentList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lrexsee/xml/XmlElement;",
            ">;"
        }
    .end annotation
.end field

.field private mError:Ljava/lang/String;

.field private mRoot:Lrexsee/xml/XmlElement;

.field private final nameSpaces:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private standAlone:Ljava/lang/Boolean;

.field private syncTag:Z

.field private version:Ljava/lang/String;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 3
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 52
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 39
    iput-boolean v2, p0, Lrexsee/xml/RexseeXML;->syncTag:Z

    .line 40
    const-string v0, ""

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->mError:Ljava/lang/String;

    .line 42
    iput-object v1, p0, Lrexsee/xml/RexseeXML;->version:Ljava/lang/String;

    .line 43
    iput-object v1, p0, Lrexsee/xml/RexseeXML;->encoding:Ljava/lang/String;

    .line 44
    iput-object v1, p0, Lrexsee/xml/RexseeXML;->standAlone:Ljava/lang/Boolean;

    .line 45
    iput v2, p0, Lrexsee/xml/RexseeXML;->depth:I

    .line 46
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->nameSpaces:Ljava/util/HashMap;

    .line 48
    iput-object v1, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    .line 49
    iput-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 50
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    .line 53
    iput-object p1, p0, Lrexsee/xml/RexseeXML;->mBrowser:Lrexsee/core/browser/Browser;

    .line 54
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->mContext:Landroid/content/Context;

    .line 55
    return-void
.end method

.method static synthetic access$0(Lrexsee/xml/RexseeXML;Lrexsee/xml/XmlElement;)V
    .locals 0

    .prologue
    .line 48
    iput-object p1, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    return-void
.end method

.method static synthetic access$1(Lrexsee/xml/RexseeXML;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 40
    iput-object p1, p0, Lrexsee/xml/RexseeXML;->mError:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lrexsee/xml/RexseeXML;Z)V
    .locals 0

    .prologue
    .line 39
    iput-boolean p1, p0, Lrexsee/xml/RexseeXML;->syncTag:Z

    return-void
.end method

.method static synthetic access$3(Lrexsee/xml/RexseeXML;)Lrexsee/xml/XmlElement;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    return-object v0
.end method

.method static synthetic access$4(Lrexsee/xml/RexseeXML;)Ljava/util/HashMap;
    .locals 1

    .prologue
    .line 46
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->nameSpaces:Ljava/util/HashMap;

    return-object v0
.end method

.method static synthetic access$5(Lrexsee/xml/RexseeXML;)I
    .locals 1

    .prologue
    .line 45
    iget v0, p0, Lrexsee/xml/RexseeXML;->depth:I

    return v0
.end method

.method static synthetic access$6(Lrexsee/xml/RexseeXML;I)V
    .locals 0

    .prologue
    .line 45
    iput p1, p0, Lrexsee/xml/RexseeXML;->depth:I

    return-void
.end method

.method static synthetic access$7(Lrexsee/xml/RexseeXML;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 42
    iput-object p1, p0, Lrexsee/xml/RexseeXML;->version:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$8(Lrexsee/xml/RexseeXML;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 43
    iput-object p1, p0, Lrexsee/xml/RexseeXML;->encoding:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$9(Lrexsee/xml/RexseeXML;Ljava/lang/Boolean;)V
    .locals 0

    .prologue
    .line 44
    iput-object p1, p0, Lrexsee/xml/RexseeXML;->standAlone:Ljava/lang/Boolean;

    return-void
.end method


# virtual methods
.method public getAttribute(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .param p1, "attributeName"    # Ljava/lang/String;

    .prologue
    .line 243
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->attributes:Ljava/util/HashMap;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->attributes:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    const-string v0, ""

    .end local p0    # "this":Lrexsee/xml/RexseeXML;
    :goto_0
    return-object v0

    .restart local p0    # "this":Lrexsee/xml/RexseeXML;
    :cond_1
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->attributes:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/xml/RexseeXML;
    check-cast p0, Ljava/lang/String;

    move-object v0, p0

    goto :goto_0
.end method

.method public getChildLength()I
    .locals 1

    .prologue
    .line 246
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    if-nez v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getDepth()I
    .locals 1

    .prologue
    .line 237
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const/4 v0, -0x1

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget v0, v0, Lrexsee/xml/XmlElement;->depth:I

    goto :goto_0
.end method

.method public getEncoding()Ljava/lang/String;
    .locals 1

    .prologue
    .line 206
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->encoding:Ljava/lang/String;

    return-object v0
.end method

.method public getIndexOf()I
    .locals 2

    .prologue
    .line 252
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_1

    :cond_0
    const/4 v0, -0x1

    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v0

    goto :goto_0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 27
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 23
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "XML"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getJson()Ljava/lang/String;
    .locals 1

    .prologue
    .line 228
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    invoke-virtual {v0}, Lrexsee/xml/XmlElement;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getListByAttribute(Ljava/lang/String;Ljava/lang/String;)I
    .locals 2
    .param p1, "attributeName"    # Ljava/lang/String;
    .param p2, "attributeValue"    # Ljava/lang/String;

    .prologue
    .line 307
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 308
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 310
    :goto_0
    return v0

    .line 309
    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, p1, p2}, Lrexsee/xml/XmlElement;->getChildsByAttribute(Ljava/util/ArrayList;Ljava/lang/String;Ljava/lang/String;)V

    .line 310
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getListByDepth(I)I
    .locals 2
    .param p1, "depth"    # I

    .prologue
    .line 325
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 326
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 328
    :goto_0
    return v0

    .line 327
    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, p1}, Lrexsee/xml/XmlElement;->getChildsByDepth(Ljava/util/ArrayList;I)V

    .line 328
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getListByTagName(Ljava/lang/String;)I
    .locals 2
    .param p1, "tagName"    # Ljava/lang/String;

    .prologue
    .line 313
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 314
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 316
    :goto_0
    return v0

    .line 315
    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, p1}, Lrexsee/xml/XmlElement;->getChildsByTagName(Ljava/util/ArrayList;Ljava/lang/String;)V

    .line 316
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getListByType(Ljava/lang/String;)I
    .locals 2
    .param p1, "type"    # Ljava/lang/String;

    .prologue
    .line 319
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 320
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 322
    :goto_0
    return v0

    .line 321
    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, p1}, Lrexsee/xml/XmlElement;->getChildsByType(Ljava/util/ArrayList;Ljava/lang/String;)V

    .line 322
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getListLength()I
    .locals 1

    .prologue
    .line 304
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getMaxDepth()I
    .locals 1

    .prologue
    .line 224
    iget v0, p0, Lrexsee/xml/RexseeXML;->depth:I

    return v0
.end method

.method public getNameSpaces()Ljava/lang/String;
    .locals 8

    .prologue
    const-string v7, "\""

    .line 212
    const-string v3, ""

    .line 213
    .local v3, "rtn":Ljava/lang/String;
    iget-object v5, p0, Lrexsee/xml/RexseeXML;->nameSpaces:Ljava/util/HashMap;

    invoke-virtual {v5}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v2

    .line 214
    .local v2, "nameSet":Ljava/util/Set;, "Ljava/util/Set<Ljava/lang/String;>;"
    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .line 215
    .local v1, "nameIterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_0

    .line 221
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "{"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "}"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    return-object v5

    .line 216
    :cond_0
    const-string v5, ""

    invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_1

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ","

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 217
    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 218
    .local v0, "name":Ljava/lang/String;
    iget-object v5, p0, Lrexsee/xml/RexseeXML;->nameSpaces:Ljava/util/HashMap;

    invoke-virtual {v5, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 219
    .local v4, "value":Ljava/lang/String;
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "\""

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 31
    new-instance v0, Lrexsee/xml/RexseeXML;

    invoke-direct {v0, p1}, Lrexsee/xml/RexseeXML;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getStandAlone()Ljava/lang/String;
    .locals 1

    .prologue
    .line 209
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->standAlone:Ljava/lang/Boolean;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->standAlone:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "yes"

    goto :goto_0

    :cond_1
    const-string v0, "no"

    goto :goto_0
.end method

.method public getTagName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 231
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->tagName:Ljava/lang/String;

    goto :goto_0
.end method

.method public getText()Ljava/lang/String;
    .locals 1

    .prologue
    .line 240
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->text:Ljava/lang/String;

    goto :goto_0
.end method

.method public getType()Ljava/lang/String;
    .locals 1

    .prologue
    .line 234
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->type:Ljava/lang/String;

    goto :goto_0
.end method

.method public getVersion()Ljava/lang/String;
    .locals 1

    .prologue
    .line 203
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->version:Ljava/lang/String;

    return-object v0
.end method

.method public goPreviousSibling()Z
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 285
    invoke-virtual {p0}, Lrexsee/xml/RexseeXML;->getIndexOf()I

    move-result v0

    .line 286
    .local v0, "index":I
    if-gtz v0, :cond_0

    .line 287
    const/4 v1, 0x0

    .line 290
    :goto_0
    return v1

    .line 289
    :cond_0
    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v1, v1, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    iget-object v1, v1, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    sub-int v2, v0, v3

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/xml/XmlElement;

    iput-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    move v1, v3

    .line 290
    goto :goto_0
.end method

.method public goToChild(I)Z
    .locals 1
    .param p1, "index"    # I

    .prologue
    .line 268
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gt v0, p1, :cond_1

    .line 269
    :cond_0
    const/4 v0, 0x0

    .line 272
    :goto_0
    return v0

    .line 271
    :cond_1
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/xml/XmlElement;

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 272
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public goToList(I)Z
    .locals 1
    .param p1, "index"    # I

    .prologue
    .line 295
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gt v0, p1, :cond_1

    .line 296
    :cond_0
    const/4 v0, 0x0

    .line 299
    :goto_0
    return v0

    .line 298
    :cond_1
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/xml/XmlElement;

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 299
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public goToNextSibling()Z
    .locals 3

    .prologue
    .line 276
    invoke-virtual {p0}, Lrexsee/xml/RexseeXML;->getIndexOf()I

    move-result v0

    .line 277
    .local v0, "index":I
    if-ltz v0, :cond_0

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v1, v1, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    iget-object v1, v1, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v2, v0, 0x1

    if-gt v1, v2, :cond_1

    .line 278
    :cond_0
    const/4 v1, 0x0

    .line 281
    :goto_0
    return v1

    .line 280
    :cond_1
    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v1, v1, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    iget-object v1, v1, Lrexsee/xml/XmlElement;->childs:Ljava/util/ArrayList;

    add-int/lit8 v2, v0, 0x1

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/xml/XmlElement;

    iput-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 281
    const/4 v1, 0x1

    goto :goto_0
.end method

.method public goToParent()Z
    .locals 1

    .prologue
    .line 260
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_1

    .line 261
    :cond_0
    const/4 v0, 0x0

    .line 264
    :goto_0
    return v0

    .line 263
    :cond_1
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 264
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public goToRoot()Z
    .locals 1

    .prologue
    .line 256
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    iput-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 257
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public hasParent()Z
    .locals 1

    .prologue
    .line 249
    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    iget-object v0, v0, Lrexsee/xml/XmlElement;->parent:Lrexsee/xml/XmlElement;

    if-nez v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public parse(Ljava/lang/String;Z)Z
    .locals 5
    .param p1, "code"    # Ljava/lang/String;
    .param p2, "showProgress"    # Z

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x0

    .line 59
    if-eqz p2, :cond_0

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;)V

    .line 60
    :cond_0
    new-instance v0, Lrexsee/xml/RexseeXML$1;

    invoke-direct {v0, p0, p1}, Lrexsee/xml/RexseeXML$1;-><init>(Lrexsee/xml/RexseeXML;Ljava/lang/String;)V

    .line 174
    .local v0, "parseThread":Ljava/lang/Thread;
    iput-boolean v4, p0, Lrexsee/xml/RexseeXML;->syncTag:Z

    .line 175
    const-string v1, ""

    iput-object v1, p0, Lrexsee/xml/RexseeXML;->mError:Ljava/lang/String;

    .line 176
    iput-object v3, p0, Lrexsee/xml/RexseeXML;->version:Ljava/lang/String;

    .line 177
    iput-object v3, p0, Lrexsee/xml/RexseeXML;->encoding:Ljava/lang/String;

    .line 178
    iput-object v3, p0, Lrexsee/xml/RexseeXML;->standAlone:Ljava/lang/Boolean;

    .line 179
    iget-object v1, p0, Lrexsee/xml/RexseeXML;->nameSpaces:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->clear()V

    .line 180
    iput-object v3, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    .line 181
    iput-object v3, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 182
    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrentList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 183
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 184
    :goto_0
    iget-boolean v1, p0, Lrexsee/xml/RexseeXML;->syncTag:Z

    if-eqz v1, :cond_2

    .line 190
    const/4 v0, 0x0

    .line 191
    if-eqz p2, :cond_1

    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    invoke-virtual {v1}, Lrexsee/core/progress/RexseeProgressDialog;->hide()V

    .line 192
    :cond_1
    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    if-nez v1, :cond_3

    .line 193
    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/xml/RexseeXML;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lrexsee/xml/RexseeXML;->mError:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v4

    .line 197
    :goto_1
    return v1

    .line 186
    :cond_2
    const-wide/16 v1, 0x64

    :try_start_0
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 187
    :catch_0
    move-exception v1

    goto :goto_0

    .line 196
    :cond_3
    iget-object v1, p0, Lrexsee/xml/RexseeXML;->mRoot:Lrexsee/xml/XmlElement;

    iput-object v1, p0, Lrexsee/xml/RexseeXML;->mCurrent:Lrexsee/xml/XmlElement;

    .line 197
    const/4 v1, 0x1

    goto :goto_1
.end method
